<!-- JSP to manage departments -->
<%@ page import="sg.edu.nus.iss.cats.controller.*,sg.edu.nus.iss.cats.dataaccess.DAOException"%>


<% 
    String departmentId = request.getParameter("departmentid");
    try{
        DepartmentManager departmentManager = new DepartmentManager();
        departmentManager.deleteDepartment (departmentId);         
     
    }catch(DAOException e){
        HTMLUtil.displayException(request,response,"Sorry, the department details are not available.....");
        return;
                
   }
%>


   
<!-- forward to display the existing list of departments -->

<jsp:forward page="/admin/displayDept" />
   
 